package com.xbjtech.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xbjtech.mapper.MobileYzmMapper;
import com.xbjtech.model.MobileYzm;
import com.xbjtech.service.MobileYzmService;

@Service
public class MobileYzmServiceImpl implements MobileYzmService {

	@Autowired
	MobileYzmMapper mobileYzmMapper;
	
	public void insert(MobileYzm yzm) {
		mobileYzmMapper.insertMobileYzm(yzm);
	}

	public MobileYzm findLastYzmByMobile(String mobile) {
		return mobileYzmMapper.findLastYzmByMobile(mobile);
	}

}
